package com.goldfish666.remote_control.entity.airConditioner;


import com.goldfish666.remote_control.entity.common.Model;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Inheritance(strategy = InheritanceType.JOINED)
//@BeanCopySource(source = InputDto.class, features = {CopyFeature.IGNORE_ALL_NULL_SOURCE_VALUE})
public class AirConditionerModel extends Model {

    /**
     * 默认状态（按复原再按开机后的状态）
     */
    @OneToOne
    private DefaultState defaultState;

    /**
     * 制冷默认状态
     */
    @OneToOne
    private DefaultCoolState defaultCoolState;

    /**
     * 除湿默认状态
     */
    @OneToOne
    private DefaultDryState defaultDryState;

    /**
     * 加热默认状态
     */
    @OneToOne
    private DefaultHeatState defaultHeatState;
}
